# -*- codeing = utf-8 -*-
# @Time : 2022/9/14 12:54
# @Author : 计科1814-16-徐澳
# @Software: PyCharm
import random
times =int((input("请问您想随机选几次:")))
for i in range(1,times+1):
    while 1:
        red = random.randint(0, 3)
        yellow = random.randint(0, 3)
        green = random.randint(0, 6)
        if red+yellow+green == 8:
            print("第%d次选择:\t红球%d个\t黄球%d个\t绿球%d个"%(i,red,yellow,green))
            break
        else:
            pass
# for i in range(1,7):
#     print(i)
